/*
 * Image.h
 *
 *  Created on: 14/11/2011
 *      Author: joagf
 */

#ifndef IMAGE_H_
#define IMAGE_H_


#include <string>
#include "SDL/SDL.h"
#include "SDL/SDL_image.h"
#include "structs.h"
#include <cmath>
using namespace std;

class Image
{
  private:
    /*Superfície da imagem*/
    SDL_Surface *img_;
    /*Coordenadas da imagem */
    Point2d pos_;
  public:
    Image(const string &filename,const Point2d &pos);
    virtual ~Image();
    /*Metódos de acesso*/
    SDL_Surface * getImg();
    const Point2d& getPos();
    void setPos(const Point2d &pos);
    void setColorKey(const ColorsRGB &cor);

};


#endif /* IMAGE_H_ */
